<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-bind</title>
    <script src="./js/vue.js"></script>
</head>
<body>
<div id="app">
    <a v-bind:href="url">百度一下</a>
    <a :href="url">百度一下</a>
</div>

<script>
    new Vue({
        el: "#app",
        data: {
            url : "https://www.baidu.com"
        }
    });
</script>
</body>
</html>